<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      >
	<ui:composition template="/WEB-INF/templates/template.jsf">
		<ui:define name="content">
			<div class="titlepanier">
				<h1>Panier</h1>
			</div>
			<h:dataTable value="#{layout.cat}" var="toto"
				styleClass="panier"
   				headerClass="order-table-header"
   				footerClass="order-table-footer"
   				rowClasses="order-table-odd-row,order-table-even-row"
				>
				<h:column>
					<f:facet name="header">Produit</f:facet>
					<h:graphicImage
					   url="#{''}">
					</h:graphicImage> 
				</h:column>
				<h:column>
					<f:facet name="header">Désignation</f:facet>
					#{toto.nom}
				</h:column>
				<h:column>
					<f:facet name="header">Prix HT</f:facet>
					#{toto.nom}
				</h:column>
				<h:column>
					<f:facet name="header">Prix TTC</f:facet>
					#{'c'}
					<f:facet name="footer">Total</f:facet>
				</h:column>
				<h:column>
					<f:facet name="header">Quantité</f:facet>
					#{'d'}
					<f:facet name="footer">#{''}</f:facet>
				</h:column>
				<h:column>
					<f:facet name="header">Sous-Total</f:facet>
					#{'e'}
					<f:facet name="footer">#{''}</f:facet>
				</h:column>
				<h:column>
					<f:facet name="header">Supprimer</f:facet>
					<h:form>
						<h:commandButton
						   value="Suppr"
						   action="#{signin.inscrire()}">
						</h:commandButton>
					</h:form>
				</h:column>
			</h:dataTable>
			<div class="right">
				<h:form styleClass="line">
					<h:commandButton
					   styleClass="vider"
					   value="Vider"
					   action="#{signin.inscrire()}">
					</h:commandButton>
				</h:form>
				<h:form styleClass="line">
					<h:commandButton
					   styleClass="confirm"
					   value="Confirmer"
					   action="#{signin.inscrire()}">
					</h:commandButton>
				</h:form>
			</div>			
		</ui:define>
	</ui:composition>
</html>